

import java.awt.BorderLayout;
import java.awt.TextArea;

import javax.swing.JPanel;


public class InstructionPanel {
	JPanel panel;
	TextArea header, body, footer;
	public InstructionPanel(JPanel p){
		panel =p;
		panel.setLayout(new BorderLayout());
		header = new TextArea(3,100);
		header.setEditable(false);
		panel.add(header, BorderLayout.NORTH);
		body = new TextArea(10,100);
		body.setEditable(false);
		panel.add(body, BorderLayout.CENTER);
		footer = new TextArea(3,100);
		footer.setEditable(false);
		panel.add(footer, BorderLayout.SOUTH);
	}
	public void setHeader(String text){
		header.setText(text);
	}
	
	public void setInstructions(String text){
		body.setText(text);
	}
	
	public void setPrompt(String text){
		footer.setText(text);
	}
}
